/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.base.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 仓库生成Entity
 * @author alex
 * @version 2017-04-25
 */
public class BaWarehouse extends DataEntity<BaWarehouse> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 仓库编码
	private String name;		// 仓库名称
	private String simpleCode;		// 仓库简码
	private String type;		// 仓库类型 数据字典：warehouse_type 0实体仓，1,虚拟仓
	private Area area;		// 区域ID
	private String areaName;		// 区域名称
	private String contacter;		// 联系人
	private String phone;		// 电话
	private String email;		// 邮箱
	private String province;		// 省份
	private String city;		// 城市
	private String dist;		// 区县
	private String street;		// 街道
	private String address;		// 详细地址
	private String status;		// 是否有效
	private String createName;		// 创建人
	private String updateName;		// 更新人
	
	public BaWarehouse() {
		super();
	}

	public BaWarehouse(String id){
		super(id);
	}

	@Length(min=0, max=30, message="仓库编码长度必须介于 0 和 30 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="仓库名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=30, message="仓库简码长度必须介于 0 和 30 之间")
	public String getSimpleCode() {
		return simpleCode;
	}

	public void setSimpleCode(String simpleCode) {
		this.simpleCode = simpleCode;
	}
	
	@Length(min=0, max=1, message="仓库类型 数据字典：warehouse_type 0实体仓，1,虚拟仓长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=50, message="区域名称长度必须介于 0 和 50 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=0, max=30, message="联系人长度必须介于 0 和 30 之间")
	public String getContacter() {
		return contacter;
	}

	public void setContacter(String contacter) {
		this.contacter = contacter;
	}
	
	@Length(min=0, max=30, message="电话长度必须介于 0 和 30 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=50, message="邮箱长度必须介于 0 和 50 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=50, message="省份长度必须介于 0 和 50 之间")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=50, message="城市长度必须介于 0 和 50 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=50, message="区县长度必须介于 0 和 50 之间")
	public String getDist() {
		return dist;
	}

	public void setDist(String dist) {
		this.dist = dist;
	}
	
	@Length(min=0, max=50, message="街道长度必须介于 0 和 50 之间")
	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}
	
	@Length(min=0, max=50, message="详细地址长度必须介于 0 和 50 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=1, message="是否有效长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=30, message="创建人长度必须介于 0 和 30 之间")
	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
	@Length(min=0, max=30, message="更新人长度必须介于 0 和 30 之间")
	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}
	
}